package org.game.ddd.client.view;

import org.game.ddd.common.model.CellModel;

import javax.swing.*;
import java.awt.*;

public class CellView extends JPanel {
    private CellModel cellModel;

    public CellView(CellModel cellModel) {
        this.cellModel = cellModel;
        setSize();
        setBackground(new Color(179, 2, 2));
        add(new Label(cellModel.getCellId() + ""));
    }

    private void setSize() {
        setBounds(cellModel.getX(), cellModel.getY(), cellModel.getWidth(), cellModel.getHeight());
    }
}
